//
//  BHApplyDetailNavigationBar.swift
//  BigHealth
//
//  Created by 蔺百好 on 2021/6/18.
//

import UIKit
protocol BHApplyDetailNavigationBarDelegate {
    func applyNavigationDidActFunction(type: Int)
}

class BHApplyDetailNavigationBar: UIView {
    
    var delegate: BHApplyDetailNavigationBarDelegate?
    
    @IBOutlet weak var quiteBtn: UIButton!
    
    static func loadFromXib() -> BHApplyDetailNavigationBar {
        let viewArray = Bundle.main.loadNibNamed("BHApplyDetailNavigationBar", owner: nil, options: nil)
        let view: BHApplyDetailNavigationBar = viewArray![0] as! BHApplyDetailNavigationBar
        return view
    }
    
    
   
  
    @IBAction func back_clickAct(_ sender: Any) {
        self.delegate?.applyNavigationDidActFunction(type: 0)
    }
    
    
    @IBAction func gameDetailAct(_ sender: UIButton) {
        self.delegate?.applyNavigationDidActFunction(type: 1)
    }
    
    
    
    @IBAction func quiteGameAct(_ sender: Any) {
        self.delegate?.applyNavigationDidActFunction(type: 2)
    }
    
}
